import { Vec2, Node, TiledMap } from 'cc';

/** 地图索引 */
export interface MapIndex {
  row: number;
  col: number;
}

/** 地图基本信息 */
export interface MapBaseInfo {
  id: string;
  pos: Vec2;
  row: number;
  col: number;
  minX: number;
  maxX: number;
  minY: number;
  maxY: number;
  tiledMap?: TiledMap;
}

/** 卸载地图信息 */
export interface UnloadMapInfo extends MapBaseInfo {
  node: Node;
  unloadTime: number;
}

/** 障碍物基础信息 */
export interface ObstacleBaseInfo {
  id: string;
  pos: Vec2;
  x: number;
  y: number;
  minX: number;
  maxX: number;
  minY: number;
  maxY: number;
}
